<link rel="stylesheet" href="/static/index/css/drop.css">


<div class="widthFullScreen comHeader" style="min-width: 1200px">
	<div class="wdSafe">
		<img src="https://img.qikuai100.com/custorm.png" class="pull-left headerCustPic" alt="">
		<div class="pull-left cust_tel">客服电话：173-4303-0506</div>
		<div id="unLoginEd">
			<a href="/user/reg" class="pull-right ruzhu">代办公司入驻</a>
			<ul class="pull-right list_header_com" id="">
				<li>
					<a href="/user/login">登录</a>
				</li>
				<li>
					<a href="/user/reg">注册</a>
				</li>
			</ul>
		</div>
		<ul class="pull-right list_header_com" id="logindEd">
			<li>
				<a href="javascript:;">奇快企服欢迎,&nbsp;<span id="userNameBox">admin</span>&nbsp;回来</a>
			</li>
			<li>
				<a href="/users/index">查看<span class="colorMain">我的订单</span></a>
			</li>
			<li onclick="loginOut()">
				<a href="javascript:;">退出</a>
			</li>
		</ul>
	</div>
</div>


<div class="widthFullScreen subHeader">
	<div class="wdSafe">
		<div class="search_contaier ">
			<h1 style="margin-left: -1000px;float: left;">奇快企服</h1>
			<img src="https://img.qikuai100.com/logo.png" class="pull-left" alt="">
			<div class="search_wrap pull-left dropdown">
				<input class="search_ipt pull-left dropdown-toggle" name="search" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" type="button" value="选择您想要查找的" style="text-align: left;" />
				<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" style="width: 488px;">
				    <li><a href="/bz/">资质标准</a></li>
				    <li><a href="/gs/">代办公司</a></li>
				    <!-- <li><a href="#">Something else here</a></li>
				    <li role="separator" class="divider"></li>
				    <li><a href="#">Separated link</a></li> -->
				</ul>
				<input class="search_btn pull-right" type="button" value="搜索">
			</div>
		</div>

		<div class="nav_container">
			<div class="hoverDrop pull-left">
				<div class="first_tap">全部资质分类</div>

				<!--定义模板-->
				<ul class="tavFirst">
					{foreach $category_list as $vo}
						<li dataId={$vo.id}>
							{$vo.category_name}
							<ul class="secondTabList">
								{foreach $vo.subcategoy as $sub}
									<li dataId="$sub.id">

										<a href="/gs/multig{$sub.id}g0/1/">
											{$sub.category_name}
										</a>
									</li>
								{/foreach}
							</ul>
						</li>
					{/foreach}
				</ul>
			</div>
			<ul class="nav_list pull-left">
				{if condition="$idIndex == 0" }
				<li>
					<a class="active" href="/">首页</a>
				</li>
				{else /}
				<li>
					<a class="" href="/">首页</a>
				</li>
				{/if} {if condition="$idIndex == 1" }
				<li>
					<a class="active" href="/baojia/">获取报价</a>
				</li>
				{else /}
				<li>
					<a href="/baojia/">获取报价</a>
				</li>
				{/if} {if condition="$idIndex == 2" }
				<li>
					<a class="active" href="/bz/">资质办理标准</a>
				</li>
				{else /}
				<li>
					<a href="/bz/">资质办理标准</a>
				</li>
				{/if}
				{if condition="$idIndex == 3" }
				<li>
					<a class="active" href="/gs/">资质代办公司</a>
				</li>
				{else /}
				<li>
					<a href="/gs/">资质代办公司</a>
				</li>
				{/if}
				<li>
					<a href="/user/reg">代办公司入驻</a>
				</li>
				{if condition="$idIndex == 4" }
				<li>
					<a class="active" href="/zx/">行业资讯</a>
				</li>
				{else /}
				<li>
					<a href="/zx/">行业资讯</a>
				</li>
				{/if}
				{if condition="$idIndex == 5" }
				<li>
					<a class="active" href="/aboutUs/">关于我们</a>
				</li>
				{else /}
				<li>
					<a href="/aboutUs/">关于我们</a>
				</li>
				{/if}
			</ul>

		</div>

	</div>
</div>

<script type="text/javascript">
	var baseUrl = 'https://api.qikuai100.com/',
		uid = localStorage.getItem("uid");
	// 登录验证
	function initLogin() {
	    $.ajax({
	        type: "POST",
	        url: baseUrl + "api/auth/checklogin",
	        data: {
	            "uid": uid
	        },
	        success: function(result) {
	            if (result.ret == 0) {
	            	if(result.data.status == '1'){
	            		$('#unLoginEd').hide();
						$('#logindEd').show();
						var name = localStorage.getItem("name");
				    	$('#userNameBox').html(name);
	            	}else{
	            		$('#unLoginEd').show();
						$('#logindEd').hide();
	            	}
	            }else{
	            	// console.log("333")
	            	$('#unLoginEd').show();
					$('#logindEd').hide();
	            }
	        }
	    });
	}
	initLogin();
	/**
	* 退出
	*/
	function loginOut(){
		$.ajax({
			type: "POST",
			url: baseUrl + "api/auth/logout",
			data: {
				"uid": uid
			},
			success: function(result) {
				if(result.ret == 0) {
					localStorage.clear();
					layer.msg("退出登录成功");
					setTimeout(function(){
						window.location.href = '/index/index';
					}, 1000);
				}else{
					layer.msg(result.res_info);
				}
			}
		});
	}
</script>